#ifndef TEXT_IMG_HH
# define TEXT_IMG_HH

# include <GL/glut.h>

# include <math/vector.hh>

# include "../interfaces/blitable.hh"
# include <string>

class TextImg : public Blitable
{
public:
  TextImg (const std::string& text, const Vector2f& pos);

  const std::string& text () const { return text_; }
  const Vector2f& pos () const { return pos_; }

  void add_offset (Vector2f offset) { pos_ += offset; }
  void text (const std::string& s) { text_ = s; }
  void pos (const Vector2f& pos) { pos_ = pos; }

  virtual void dispatch () const;

protected:
  std::string text_;
  Vector2f pos_;
};

#endif /// !TEXT_IMG_HH
